package top.maof.book.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.maof.book.model.Chapter;

@Mapper
public interface ChapterMapper extends BaseMapper<Chapter> {

    @Select("select * from chapter where url = #{url}")
    Chapter findByUrl(String url);

    int deleteByPrimaryKey(Long id);

//    int insert(Chapter record);

    int insertSelective(Chapter record);

    Chapter selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Chapter record);

    int updateByPrimaryKeyWithBLOBs(Chapter record);

    int updateByPrimaryKey(Chapter record);
}
